<?php
/**
** @Project: NUKEVIET SUPPORT ONLINE
** @Author: Le Dien Bien (hoanganh@gmail.com)
** @Copyright:ldbienhac
** @Craetdate: 10.04.2011
** @Website: http://thcsttgiolinh.edu.vn
*/
if ( ! defined( 'NV_SYSTEM' ) ) die( 'Stop!!!' ); 

global $global_config, $db, $lang_global, $site_mods, $module_file,$my_head;
$my_head .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . NV_BASE_SITEURL . "themes/" . $global_config['site_theme'] . "/css/hotrotructuyen.css\" />\n";

$res_tr = $db->sql_query("SELECT * FROM `" . NV_PREFIXLANG . "_hotrotructuyen_group` ORDER BY `weight`");
$content = "";
$content = '<div class="online1">';//<img src="../themes/default/images/hotline.jpg">
	while($rows = $db->sql_fetchrow($res_tr))
	{
	//	$content .= '<fieldset class="onlinea"><legend><b>'.$rows['title'].'</b></legend>';
		$id=$rows['id'];
		$res = $db->sql_query("SELECT * FROM `" . NV_PREFIXLANG . "_hotrotructuyen` where idgroup='$id' ORDER BY `weight` ASC");
		while ($row = $db->sql_fetchrow($res)) {
		    $phone = $row['phone'];
			$email = $row['email'];
			$title_sub = $row['title'];
		    $yahoo_item_sub = trim($row['yahoo_item']);
		    $yahoo_type_sub = intval($row['yahoo_type']);
			    
		    $content .= '<div class="online_ht"><div class="online_col1"><a href="ymsgr:sendim?'.$yahoo_item_sub.'"><img alt="" src="http://opi.yahoo.com/online?u='.$yahoo_item_sub.'&amp;m=g&amp;t='.$yahoo_type_sub.'"/></a></div><br><div class="online_ht"><img alt="Name" src="../themes/default/images/user.png">: '.$title_sub.'</div></div><div class="online_ht"><img alt="Phone" src="../themes/default/images/phone.png">: '.$phone.'<br></div>';//<a href="mailto:'.$email.'">'.$email.'</a>
				
		}
		$content .= "</fieldset>\n";
	}
$content .= "</div>\n";
?>